import QtQuick
import QtQuick.Controls
import Qt5Compat.GraphicalEffects
import QtQuick.Layouts

Item {
    width: 90
    height: 1080 - 95

    // property int currentPage: 1

    Rectangle{
        anchors.fill: parent
        color: "#B0C4DE"
    }


    Column{
        anchors.top: parent.top
        anchors.topMargin: 5
        anchors.horizontalCenter: parent.horizontalCenter
        spacing: 5


        A_Image_Button {
            imageSource: "qrc:/images/AutoButton.png"
            contentText_Data: qsTr("自动")
            isSelected: currentPage === 1
            onButtonClicked: {
                currentPage = 1
                mainLoader.source = "AutoProcess.qml"
            }
        }
        A_Image_Button {
            imageSource: "qrc:/images/ManualProcess.png"
            contentText_Data: qsTr("手动")
            isSelected: currentPage === 2
            onButtonClicked: {
                currentPage = 2
                mainLoader.source = "ManualProcess.qml"
            }
        }
        A_Image_Button {
            imageSource: "qrc:/images/Edit.png"
            contentText_Data: qsTr("编辑")
            isSelected: currentPage === 3
            onButtonClicked: {
                currentPage = 3
                mainLoader.source = "CAM_Window.qml"
            }
        }
        A_Image_Button {
            imageSource: "qrc:/images/MaterialManager.png"
            contentText_Data: qsTr("材料库")
            isSelected: currentPage === 4
            onButtonClicked: {
                currentPage = 4
                mainLoader.source = "MaterialEdit.qml"
            }
        }
        A_Image_Button {
            imageSource: "qrc:/images/IO_Monitor.png"
            contentText_Data: qsTr("监控")
            isSelected: currentPage === 5
            onButtonClicked: {
                currentPage = 5
                mainLoader.source = "IO_MonitorWindow.qml"
            }
        }
        A_Image_Button {
            imageSource: "qrc:/images/Parameter.png"
            contentText_Data: qsTr("参数")
            isSelected: currentPage === 6
            onButtonClicked: {
                currentPage = 6
                mainLoader.source = "ParameterWindow.qml"
            }
        }
        A_Image_Button {
            imageSource: "qrc:/images/Warning.png"
            contentText_Data: qsTr("报警")
            isSelected: currentPage === 7
            onButtonClicked: {
                currentPage = 7
                mainLoader.source = "Warning_Window.qml"
            }
        }
        A_Image_Button {
            imageSource: "qrc:/images/SystemDIY.png"
            contentText_Data: qsTr("配置")
            isSelected: currentPage === 8
            onButtonClicked: {
                currentPage = 8
                mainLoader.source = "ConfigWindow.qml"
            }
        }

    }








}
